﻿<%@ Page language="c#" Codebehind="Project.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.Project" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="author" content="Herry" />
<meta name="Copyright" content="Copyright (c) 2009 himm.cn" />
<title>Project</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="/css/other.css" media="screen" />
<script language="javascript">
		function MoveToTeam(a)
{
	var ret;
	ret = window.showModalDialog("MoveTeam/TreeView.aspx?FromID=<%=classID%>",window,"dialogHeight:400px;dialogWidth:300px;center:Yes;Help:No;Resizable:No;Status:Yes;Scroll:auto;Status:no;");

	
	if(ret>0)
//	frmAddRight.ObjID.value = ret;
	return false;
}
		</script>
<script language="JavaScript" src="/Css/tr.js"></script>
</head>
<body>

<div class="m">
    <p class="path"><a href="/SubModule/UnitiveDocument/">我的桌面</a> >> 公司项目</p>
        <div class="con">
        <form id="Project" method="post" runat="server">
        <div class="product">
        <h3 class="tl"><asp:label id="lblClassName" runat="server" BorderColor="Transparent" ></asp:label><asp:label id="lblMember" runat="server"></asp:label> <A href="ProjectDetail.aspx?classID=<%=classID%>" ><img height="19" src="/Images/p_more.gif" width="22" border="0"></A></h3>
            <ul>
                <li><a href="Mail/Compose.aspx?classID=<%=classID%>"><asp:image id="imgComposeMail" runat="server" ImageUrl="../../Images/icon/284.GIF" Height="16px" Width="16px"></asp:image><asp:label id="lblComposeMail" runat="server" > 撰写邮件</asp:label></a></li>
                <li><a href="Switch.aspx?Action=0&amp;ClassID=<%=classID%>"><asp:image id="imgDeliveryDoc" runat="server" ImageUrl="~/Images/icon/278.GIF" Height="16px" Width="16px"></asp:image><asp:label id="lblDeliveryDoc" runat="server" > 投递文档</asp:label></a></li>
                <li><a href="oClassNode.aspx?Action=1&amp;classID=<%=classID%>"><asp:image id="imgManageDirectory" runat="server" ImageUrl="~/Images/icon/001.GIF" Height="16px" Width="16px"></asp:image><asp:label id="lblManageDirectory" runat="server" > 目录管理</asp:label></a></li>
                <li><a href="ManageProject.aspx?Action=3&amp;classID=<%=classID%>"><asp:image id="imgManageProject" runat="server" ImageUrl="~/Images/icon/273.GIF" Height="16px" Width="16px"></asp:image><asp:label id="lblManageProject" runat="server" > 管理项目</asp:label></a></li>
                <li><a href="Project.aspx?classID=<%=classID%>&amp;Action=5"><asp:image id="imgSubscribe" runat="server" ImageUrl="~/Images/Icon/mydoc.gif" Height="16px" Width="16px"></asp:image><asp:label id="lblSubscribe" runat="server" > 订阅项目</asp:label></a></li>
                <li><a href="../AssignRule/RightListView.aspx?ObjID=<%=classID%>&amp;displayType=1"><asp:image id="imgManagePermission" runat="server" ImageUrl="~/Images/icon/118.gif" Height="16px" Width="16px"></asp:image><asp:label id="lblManagePermission" runat="server" > 权限管理</asp:label></a></li>
                <li><a href="MemberListView.aspx?TeamID=<%=classID%>"><asp:image id="imgShowMember" runat="server" ImageUrl="~/Images/admin_ico2.gif" Height="16px" Width="16px"></asp:image><asp:label id="lblShowMember" runat="server" > 显示组员</asp:label></a></li>
                <li><a onClick="MoveToTeam()" href="#"><asp:image id="imgRemove" runat="server" ImageUrl="~/Images/Icon/03.gif" Height="14px" Width="14px"></asp:image><asp:label id="lblRemove" runat="server" > 项目移动</asp:label></a></li>
            </ul>
        </div>
        <div class="Rlist">
        <table>
            <tr>
                <td class="p_bg"><img src="/Images/public/point.gif" runat="server" id="line1"><a href="Document/Listview.aspx?ClassID=<%=classID%>" ><img src="/Images/public/p_doc.png" name="IMG1" border="0" id="IMG1" runat="server"></a></td>
            </tr>
            <tr id="tr1" runat="server">
                <td>
                <asp:datagrid id="dgDocList" runat="server" Width="100%" BorderWidth="0" GridLines="Horizontal" CellPadding="2" AllowSorting="True" AutoGenerateColumns="False" AllowPaging="True" PagerStyle-Mode="NumericPages" PagerStyle-HorizontalAlign="Right" DataKeyField="DocID">
                    <ItemStyle  HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                    <HeaderStyle  HorizontalAlign="Center" Height="20px" VerticalAlign="Middle"></HeaderStyle>
                    <FooterStyle  HorizontalAlign="Center" Height="10px" VerticalAlign="Bottom"></FooterStyle>
                    <Columns>
                    <asp:TemplateColumn HeaderText="文档标题">
                    <HeaderStyle HorizontalAlign="Left" Width="30%"></HeaderStyle>
                    <ItemStyle  HorizontalAlign="Left"></ItemStyle>
                    
                    <ItemTemplate> <a href='Document/BrowseDocument.aspx?DocId=<%# DataBinder.Eval(Container.DataItem,"DocID") %>'> <%# (DataBinder.Eval(Container.DataItem,"DocTitle").ToString().Length>20)?DataBinder.Eval(Container.DataItem,"DocTitle").ToString().Substring(0,20)+"...":DataBinder.Eval(Container.DataItem,"DocTitle").ToString() %> </a> </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="审批人">
                    <HeaderStyle Width="15%"></HeaderStyle>
                    <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# GetRealName(DataBinder.Eval(Container, "DataItem.DocApprover").ToString()) %>'> </asp:Label>
                    </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="上传人">
                    <HeaderStyle Width="15%"></HeaderStyle>
                    <ItemTemplate>
                    <asp:Label ID="Label2" runat="server" Text='<%# GetRealName(DataBinder.Eval(Container, "DataItem.DocAddedBy").ToString()) %>'> </asp:Label>
                    </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:BoundColumn DataField="DocViewedTimes" HeaderText="浏览次数">
                    <HeaderStyle HorizontalAlign="Left" Width="15%"></HeaderStyle>
                    <ItemStyle  HorizontalAlign="Left"></ItemStyle>
                    </asp:BoundColumn>
                    <asp:TemplateColumn HeaderText="上传日期">
                    <HeaderStyle HorizontalAlign="Right" Width="20%"></HeaderStyle>
                    <ItemStyle  HorizontalAlign="Right"></ItemStyle>
                    <ItemTemplate>
                    
                    <asp:Label ID="Label3" runat="server" Text='<%# DateTime.Parse(DataBinder.Eval(Container, "DataItem.DocAddedDate").ToString()).ToString("yyyy-MM-dd") %>'> </asp:Label>
                    </ItemTemplate>
                    </asp:TemplateColumn>
                </Columns>
                <PagerStyle Visible="False" BorderStyle="Dotted" HorizontalAlign="Right" PageButtonCount="5" Mode="NumericPages"></PagerStyle>
                </asp:datagrid>
                </td>
            </tr>
        </table>            
        </div>
        
        <div class="Rlist">
        <table>
            <tr>
                <td class="p_bg"><a href="Mail/Index.aspx?classID=<%=classID%>" ><img src="/Images/public/p_mail.png" name="IMG2" border="0" id="IMG2" runat="server"></a></td>
            </tr>
            <tr id="tr2" runat="server">
                <td>
                <asp:datagrid id="dgMailList" runat="server" Width="100%" GridLines="Horizontal" CellPadding="2" BorderWidth="0" AllowSorting="True" AutoGenerateColumns="False" AllowPaging="True" PagerStyle-Mode="NumericPages" PagerStyle-HorizontalAlign="Right" DataKeyField="MailID" PageSize="5">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                <HeaderStyle  HorizontalAlign="Center" Height="10px" VerticalAlign="Top"></HeaderStyle>
                <FooterStyle  HorizontalAlign="Center" Height="10px" VerticalAlign="Bottom"></FooterStyle>
                <Columns>
                <asp:TemplateColumn HeaderText="邮件主题">
                <HeaderStyle HorizontalAlign="Left" Width="35%"></HeaderStyle>
                <ItemStyle  HorizontalAlign="Left"></ItemStyle>
                <ItemTemplate> <a href='Mail/ReadMail.aspx?MailId=<%# DataBinder.Eval(Container.DataItem,"MailID") %>'> <%# (DataBinder.Eval(Container.DataItem,"MailSubject").ToString().Length>30)?DataBinder.Eval(Container.DataItem,"MailSubject").ToString().Substring(0,30)+"...":DataBinder.Eval(Container.DataItem,"MailSubject").ToString() %> </a> <%# DataBinder.Eval(Container.DataItem,"attnumber").ToString()=="0"?"":"<img src='../../DataImages/attach.gif' border='0'>" %> </ItemTemplate>
                </asp:TemplateColumn>
                <asp:BoundColumn DataField="MailSender" HeaderText="发送者">
                <HeaderStyle Width="15%"></HeaderStyle>
                <ItemStyle></ItemStyle>
                </asp:BoundColumn>
                <asp:BoundColumn DataField="MailReceiver" HeaderText="接收者">
                <HeaderStyle Width="15%"></HeaderStyle>
                <ItemStyle></ItemStyle>
                <FooterStyle ></FooterStyle>
                </asp:BoundColumn>
                <asp:TemplateColumn HeaderText="是否已读">
                <HeaderStyle Width="15%"></HeaderStyle>
                <ItemStyle></ItemStyle>
                <ItemTemplate> <%# (string)DataBinder.Eval(Container.DataItem,"MailReadFlag")=="False"?"<img src='../../Images/mailclose.gif'>":"<img src='../../Images/mailopen.gif'>" %> </ItemTemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="接收日期">
                <HeaderStyle HorizontalAlign="Right" Width="20%"></HeaderStyle>
                <ItemStyle  HorizontalAlign="Right"></ItemStyle>
                <ItemTemplate>
                <asp:Label ID="Label4" runat="server" Text='<%# DateTime.Parse(DataBinder.Eval(Container, "DataItem.MailSendDate").ToString()).ToString("yyyy-MM-dd") %>'> </asp:Label>
                </ItemTemplate>
                </asp:TemplateColumn>
                </Columns>
                <PagerStyle Visible="False" BorderStyle="Dotted" HorizontalAlign="Right" PageButtonCount="5" Mode="NumericPages"></PagerStyle>
                </asp:datagrid>

                <table id="tblMailList" style="BORDER-COLLAPSE: collapse" borderColor="#cccccc" height="36" cellSpacing="0" cellPadding="0" width="100%" border="0" runat="server">
                </table>
                </td>
            </tr>
        </table>
        </div>
        
        <div class="Rlist">
        <table>
            <tr>
                <td class="p_bg"><img src="/Images/public/point.gif" runat="server" id="line2"><a href="Approve/ListView.aspx?ClassID=<%=classID%>&amp;DisplayType=1" ><img src="/Images/public/p_sp.png" name="IMG3" border="0" id="IMG3" runat="server"></a></td>
            </tr>
            <tr id="tr3" runat="server">
                <td>
                <asp:label id="lblApp" runat="server" Visible="False">审批文档</asp:label>
                <asp:datagrid id="dgAppDocList" runat="server" Width="100%" CellPadding="2" BorderWidth="0" AllowSorting="True" AutoGenerateColumns="False" AllowPaging="True" PagerStyle-Mode="NumericPages" PagerStyle-HorizontalAlign="Right" DataKeyField="DocID">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>
                <HeaderStyle  HorizontalAlign="Center" Height="20px" VerticalAlign="Middle" BackColor="#E8F4FF"></HeaderStyle>
                <FooterStyle  HorizontalAlign="Center" Height="10px" VerticalAlign="Bottom"></FooterStyle>
                <Columns>
                <asp:TemplateColumn HeaderText="文档标题">
                <HeaderStyle HorizontalAlign="Left" Width="35%"></HeaderStyle>
                <ItemStyle  HorizontalAlign="Left"></ItemStyle>
                <ItemTemplate> <a href='Document/BrowseDocument.aspx?DocId=<%# DataBinder.Eval(Container.DataItem,"DocID") %>'> <%# (DataBinder.Eval(Container.DataItem,"DocTitle").ToString().Length>20)?DataBinder.Eval(Container.DataItem,"DocTitle").ToString().Substring(0,20)+"...":DataBinder.Eval(Container.DataItem,"DocTitle").ToString() %> </a> </ItemTemplate>
                </asp:TemplateColumn>
                <asp:BoundColumn DataField="DocAddedBy" HeaderText="上传人">
                <HeaderStyle HorizontalAlign="Left" Width="20%"></HeaderStyle>
                <ItemStyle  HorizontalAlign="Left"></ItemStyle>
                <FooterStyle ></FooterStyle>
                </asp:BoundColumn>
                <asp:BoundColumn DataField="DocViewedTimes" HeaderText="浏览次数">
                <HeaderStyle HorizontalAlign="Left" Width="20%"></HeaderStyle>
                <ItemStyle  HorizontalAlign="Left"></ItemStyle>
                </asp:BoundColumn>
                <asp:TemplateColumn HeaderText="上传日期">
                <HeaderStyle HorizontalAlign="Right" Width="25%"></HeaderStyle>
                <ItemStyle  HorizontalAlign="Right"></ItemStyle>
                <ItemTemplate>
                <asp:Label ID="Label5" runat="server" Text='<%# DateTime.Parse(DataBinder.Eval(Container, "DataItem.DocAddedDate").ToString()).ToString("yyyy-MM-dd") %>'> </asp:Label>
                </ItemTemplate>
                </asp:TemplateColumn>
                </Columns>
                <PagerStyle Visible="False" BorderStyle="Dotted" HorizontalAlign="Right" PageButtonCount="5" Mode="NumericPages"></PagerStyle>
                </asp:datagrid>
                </td>
            </tr>
        </table>
        </div>

</form>

		</div>
		</div>
	</body>
</html>
